﻿<%@ Page language="c#" Codebehind="Online.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.UnitiveDocument.Online" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="zh-cn" />
<meta name="author" content="Herry" />
<meta name="Copyright" content="Copyright (c) 2009 himm.cn" />
<title>Online</title>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link rel="stylesheet" type="text/css" href="/css/Nav.css" media="screen" />
		<script language="javascript">
		function SetCookie(sName, sValue)
		{
			document.cookie = sName + "=" + escape(sValue) + "; ";
		}
	
		function GetCookie(sName)
		{
			var aCookie = document.cookie.split("; ");
			for (var i=0; i < aCookie.length; i++)
			{
				
				var aCrumb = aCookie[i].split("=");
				if (sName == aCrumb[0]) 
				return unescape(aCrumb[1]);
			}
			
		
		}

		function opendialwin()
		{
				var newdialoguewin = window.showModalDialog("/SM/Setup.aspx",window,"dialogWidth:500px;DialogHeight=140px;status:no");
				if(newdialoguewin!=null){
					
				}
		}

		function show_sm()
		{
			if (typeof(msgwin)!="undefined" && msgwin.open && !meizz.closed)
			{
				msgwin.focus();
			}
			else
			{
				mytop=screen.availHeight-246;
				myleft=0;
				var msgwin = window.open("/SM/MsgManage.aspx","auto_call_show","height=170,width=350,status=0,toolbar=no,menubar=no,location=no,scrollbars=yes,top="+mytop+",left="+myleft+",resizable=yes");
			}
		}

		function showonline()
		{
			onlinewin=window.open("onlineperson.aspx","online","width:500,height:800,toolbar=no,status=no,resizable=yes")
			onlinewin.moveTo(20,20)
			onlinewin.resizeTo(600,500)

		}
		function re()
		{
			location.reload();
		}
		function setup()
		{
			opendialwin();
		}

		</script>
	</head>
	<body onload='setInterval("re()",(GetCookie("UDS_RefreshTime"))==null?30000:GetCookie("UDS_RefreshTime"))'>
		<form id="Online" method="post" runat="server">
		<p><a href="#" onclick="setup()"><img src="/Images/person.gif" style="border:none;"></a>在线人数:<a href="javascript:showonline()"><asp:Label id="lblOnlineCount" runat="server" ForeColor="yellow"></asp:Label></a><asp:Literal id="lit" runat="server"></asp:Literal></p>
		</form>
	</body>
</HTML>
